package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JW
 * @Description: TODO
 * @DateTime: 2022-02-11 20:14
 **/
@RestController
@RequestMapping("/api/v1/channel")
public class WmChannelController {

    @Autowired
    private WmChannelService wmChannelService;

    /**
     * @Author: JW
     * @Description:  TODO 获取频道列表
     * @Date: 20:24 2022-02-11
     * @Param: []
     * @return: com.heima.model.common.dtos.ResponseResult
    **/
    @GetMapping("/channels")
    public ResponseResult getChannel(){

        return wmChannelService.getChannel();
    }


}
